package net.sea.setup.ui.wizard;

/**
 * 向导页接口
 * 
 * @author 华成伍
 *
 */
public interface IWizardPage {
	/**
	 * 
	 * 消息对象
	 *
	 * @author huachengwu 
	 */
	public class PageResult {
		// 是否通过
		private boolean passed;
		// 提示信息
		private String message;

		public PageResult(boolean passed, String message) {
			super();
			this.passed = passed;
			this.message = message;
		}

		public PageResult(boolean passed) {
			super();
			this.passed = passed;
		}

		public boolean isPassed() {
			return passed;
		}

		public void setPassed(boolean passed) {
			this.passed = passed;
		}

		public String getMessage() {
			return message;
		}

		public void setMessage(String message) {
			this.message = message;
		}
	}

	/**
	 * 验证页面信息输入是否正确
	 * 
	 * @return 返回消息
	 */
	public PageResult validateInput();

	/**
	 * 页面准备方法
	 */
	public void ready();

	/**
	 * 页面处理方法
	 */
	public void process();

	/**
	 * 页面处理完成要做的操作
	 */
	public void done();
}
